package com.zhb.designmode.creationmode.builder.classical;

public class Client {

    public static void main(String[] args) {
        PhoneBuilder huaweiBuilder = new HuaweiPhoneBuilder();
        Director director = new Director();
        director.makePhone(huaweiBuilder);
        Phone huawei = huaweiBuilder.getPhone();
        System.out.println(huawei);

        PhoneBuilder iphoneBuilder = new iPhoneBuilder();
        Director director2 = new Director();
        director2.makePhone(iphoneBuilder);
        Phone iphone = iphoneBuilder.getPhone();
        System.out.println(iphone);
    }
}
